package cn.example.project1.dao;

import cn.example.project1.po.Word;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * Created by WuYB on 2017/9/27.
 */
@Mapper
@Repository
public interface WordDAO {

    int insert(Word word);

    @Select("SELECT id,name FROM word WHERE id = #{id}")
    Word getByID(@Param("id") int id);

    Map<String, Object> getWordByID(@Param("id") int id);

    Object getByteByID(@Param("id") int id);
}
